Add Plausible analytics - #701
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR integrates Plausible analytics into the documentation site and adds user-facing attribution text, including a custom event for 404 page views.
Changes:
- Injects the Plausible tracking snippet via a template override (
main.html). - Adds an attribution paragraph in the footer “Resources” section plus styling for it.
- Adds Plausible custom event tracking on the 404 page.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| source/overrides/partials/footer.html | Adds a footer partial override (currently empty), which can affect global footer rendering. |
| source/overrides/partials/content.html | Adds Plausible attribution text with external links in the footer section. |
| source/overrides/main.html | Injects Plausible analytics script into the page head via extrahead. |
| source/overrides/404.html | Tracks 404 page views via a Plausible custom event call. |
| source/assets/stylesheets/extra.css | Styles the Plausible attribution paragraph and its links. |
Suppressed comments (1)
source/overrides/partials/footer.html:2
- The new
overrides/partials/footer.htmloverride is empty, which will replace the theme’s footer partial with no output. In MkDocs Material this typically removes the entire<footer>(including navigation/copyright) across the site. If the intent is only to add attribution text, consider removing this override; otherwise, populate it by copying the upstream theme footer partial and applying the minimal customization needed.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
balloob
previously approved these changes
Aug 5, 2026
balloob
enabled auto-merge (squash)
August 5, 2026 17:14
ludeeus
reviewed
Aug 6, 2026
ludeeus
reviewed
Aug 6, 2026
ludeeus
reviewed
Aug 6, 2026
ludeeus
reviewed
Aug 6, 2026
ludeeus
reviewed
Aug 6, 2026
Co-authored-by: Joakim Sørensen <joasoe@proton.me>
auto-merge was automatically disabled
August 6, 2026 09:26
Head branch was pushed to by a user without write access
ludeeus
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As per the announcement from the Open Home Foundation, we are rolling out Plausible to all projects within the Open Home Foundation - https://www.openhomefoundation.org/blog/making-our-web-analytics-open-source-with-plausible/
This PR adds Plausible, some footer text and 404 page tracking
Dashboard will be visible here: https://plausible.openhomefoundation.org/hacs.xyz